package org.szx.service;

import java.util.List;
import java.util.Map;

import org.szx.model.ExamSubject;
import org.szx.vo.ExamSubjectVO;
import org.szx.vo.ExamTestVO;
import org.szx.vo.ExamUserVO;

public interface SubjectService {

	public List<ExamSubject> findALLSubjects();

	public ExamSubject getSubByID(Integer sub_id);

	public void editSubject(ExamSubjectVO esVO) throws Exception;

	public void deleteUser(Integer sub_id);

	public void createSubject(ExamSubjectVO subject);

	public List<ExamUserVO> findAllUsers();

	public List<String> getAllUserBySubject(Integer subjectId);

	public void saveSubjectStudent(List<String> list, Integer subjectId);

	public Map<Long, List<ExamTestVO>> getTestListBySubject(Integer subId, String userId);

	public ExamSubjectVO getSubjectByIdVO(Integer subId);

	public void calculateScore(List<Integer> answerIds, Map<String, String[]> testMap, String userId, Integer subId);

}
